﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
</head>
<body>
    <div class="page">
        <header>
            <div id="title">
                <h1>Clearer application</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            <nav>
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                </ul>
            </nav>
        </header>
        <section id="main">
            @RenderBody()
        </section>
        <footer>
        <small>
        Made by Andrei Ignat, <a href="http://msprogrammer.serviciipeweb.ro/" target="_blank">http://msprogrammer.serviciipeweb.ro</a>
        <br />
        Source code at <a href="http://clearer.codeplex.com/"  target="_blank">http://clearer.codeplex.com/</a>
        <br />
        View online at <a href="http://clearer.apphb.com/Clearer" target="_blank">http://clearer.apphb.com/Clearer</a>
        </small>
        </footer>
        <script type="text/javascript">
            (function () {
                if (window.CHITIKA === undefined) { window.CHITIKA = { 'units': [] }; };
                var unit = { "publisher": "ignatandrei", "width": 300, "height": 250, "sid": "Chitika Default", "color_site_link": "0000CC", "color_bg": "FFFFFF" };
                var placement_id = window.CHITIKA.units.length;
                window.CHITIKA.units.push(unit);
                document.write('<div id="chitikaAdBlock-' + placement_id + '"></div>');
                var s = document.createElement('script');
                s.type = 'text/javascript';
                s.src = '//cdn.chitika.net/getads.js';
                try { document.getElementsByTagName('head')[0].appendChild(s); } catch (e) { document.write(s.outerHTML); }
            }());
        </script>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            $.ajaxSetup({
                cache: false,
                error: function (x, e) {
                    if (x.status == 0) {
                        alert('You are offline!!\n Please Check Your Network.');
                    } else if (x.status == 404) {
                        alert('Requested URL not found.');
                    } else if (x.status == 500) {
                        alert('Internal Server Error.');
                    } else if (e == 'parsererror') {
                        alert('Error.\nParsing JSON Request failed.');
                    } else if (e == 'timeout') {
                        alert('Request Time out.');
                    } else {
                        alert('Unknown Error.\n' + x.responseText);
                    }
                }
            });
        });
</script>
</body>
</html>
